import {createStore, combineReducers, applyMiddleware} from 'redux';
//redux-del-tools 支持
import { composeWithDevTools } from 'redux-devtools-extension/logOnlyInProduction';

import * as example from './example/reducer';

//redux-thunk
import thunk from 'redux-thunk';

//redux-del-tools 配置
const composeEnhancers = composeWithDevTools({
    // options like actionSanitizer, stateSanitizer
});

let store = createStore(
    combineReducers({...example}),
    composeEnhancers(
        applyMiddleware(thunk)
    )
);

export default store;
